Skip to content

spec: add span-basic specification#995

Merged
MarkusNeusinger merged 1 commit intomainfrom
specification/span-basic
Dec 15, 2025
Merged

spec: add span-basic specification#995
MarkusNeusinger merged 1 commit intomainfrom
specification/span-basic

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

New Specification: span-basic

Closes #980


specification.md

span-basic: Basic Span Plot (Highlighted Region)

Description

A span plot highlights a specific region of interest on a chart using a shaded rectangular area that spans the full height or width of the plot. Vertical spans mark ranges along the x-axis (e.g., time periods), while horizontal spans mark ranges along the y-axis (e.g., value thresholds). The semi-transparent fill allows underlying data to remain visible while drawing attention to the highlighted region.

Applications

  • Marking recession periods or economic events on financial time series charts
  • Highlighting acceptable/unacceptable value ranges or threshold zones on line plots
  • Indicating maintenance windows, downtime periods, or significant events in operational dashboards
  • Showing confidence intervals or uncertainty bands around data points

Data

  • start (numeric) - Start position of the span region
  • end (numeric) - End position of the span region
  • direction (categorical) - Either "vertical" (spans x-axis) or "horizontal" (spans y-axis)
  • Size: 1-5 span regions overlaid on existing data
  • Example: A line chart with dates on x-axis showing a shaded vertical span from 2008 to 2009 marking a recession period

Notes

  • Use semi-transparent fill (alpha 0.2-0.3) to keep underlying data visible
  • Vertical spans are most common for time-based data (highlighting periods)
  • Horizontal spans work well for threshold visualization (highlighting value ranges)
  • Optional: include edge lines or text labels within the span region

Next: Add approved label to the issue to merge this PR.


🤖 spec-create workflow

@MarkusNeusinger MarkusNeusinger added the approved Approved for implementation label Dec 15, 2025
@MarkusNeusinger MarkusNeusinger merged commit 861f7cc into main Dec 15, 2025
5 checks passed
@MarkusNeusinger MarkusNeusinger deleted the specification/span-basic branch December 15, 2025 20:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Approved for implementation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[span-basic] Basic Span Plot (Highlighted Region)

1 participant